// 审批
import Layout from '@/layout'

// layout-第一层!!  组件位于layout的二级路由里面
export default {
    path:'/approvals',
    name:'approvals',
    component:Layout,
    children:[
        {
        path:'',  //什么都不写,默认是二级路由直接看component默认的index.vue
        component: () => import('@/views/approvals'),
         // 路由元信息  存储数据的对象信息
        name:'approvals',
        meta:{
            title:'审批管理',  //左侧菜单名称
            icon:'tree-table'  //左侧图标
         }
        },
        {
            path: 'salaryApproval/:id',
            component: () => import('@/views/approvals/salary'),
            name: 'salaryApproval',
            hidden: true,
            meta: {
              title: '工资审核',
              icon: 'approval', noCache: true }
          },
          {
            path: 'enterApproval/:id',
            component: () => import('@/views/approvals/enter'),
            name: 'enterApproval',
            hidden: true,
            meta: {
              title: '入职审核',
              icon: 'approval', noCache: true }
          },
          {
            path: 'leaveApproval/:id',
            component: () => import('@/views/approvals/leave'),
            name: 'leaveApproval',
            hidden: true,
            meta: {
              title: '申请请假',
              icon: 'approval', noCache: true }
          },
          {
            path: 'quitApproval/:id',
            component: () => import('@/views/approvals/quit'),
            name: 'quitApproval',
            hidden: true,
            meta: {
              title: '申请离职',
              icon: 'approval', noCache: true }
          },
          {
            path: 'overtimeApproval/:id',
            component: () => import('@/views/approvals/overtime'),
            name: 'overtimeApproval',
            hidden: true,
            meta: {
              title: '加班申请',
              icon: 'approval', noCache: true }
          },
          {
            path: 'securitySetting',
            component: () => import('@/views/approvals/security'),
            name: 'securitySetting',
            hidden: true,
            meta: {
              title: '设置',
              icon: 'approval', noCache: true }
          }
    ]
}
